<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace app\reminder\controller;

class AdminSetting extends \app\AdminRest
{
    protected $model;
    protected $admin_model;
    public function __construct(\think\App $app)
    {
        parent::__construct($app);
        $this->model = new \app\reminder\model\Config();
        $this->admin_model = new \app\massage\model\Admin();
    }
    public function configInfo()
    {
        $dis = ["uniacid" => $this->_uniacid];
        $data = $this->model->dataInfo($dis);
        return $this->success($data);
    }
    public function configUpdate()
    {
        $input = $this->_input;
        $dis = ["uniacid" => $this->_uniacid];
        if(isset($input["reminder_admin_phone"])) {
            $input["reminder_admin_phone"] = !empty($input["reminder_admin_phone"]) ? implode(",", $input["reminder_admin_phone"]) : "";
        }
        $data = $this->model->dataUpdate($dis, $input);
        return $this->success($data);
    }
}

?>